﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using LinqKit;

namespace condortravel.operaciones.persistence
{
    public interface IGenericDAO<E, PK>
    {
        void add(List<E> entityList);
        E add(E entity);
        E update(E entity);
        E getByID(PK id);
        void delete(Expression<Func<E, bool>> Where);
        List<E> getListAll();
        List<E> getList(Expression<Func<E, bool>>  Where);
        List<E> getListWithoutImp(Expression<Func<E, bool>> Where);
        void executeSQL(string sql);

        //List<E> getByCriteria(Expression
    }
}
